/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.swta;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;

/**
 *
 * @author JKorreck
 */
public abstract class AbstractConfirmDeletePage extends WebPage {

    public AbstractConfirmDeletePage(String message) {
        
        add(new Label("message", message));
        add(new Link("confirm") {

            @Override
            public void onClick() {
                onConfirm();
            }
        });
        add(new Link("cancel") {

            @Override
            public void onClick() {
                onCancel();
            }
        });
    }

    protected abstract void onCancel();

    protected abstract void onConfirm();
}
